Repository navigation
DC-3698: capture multipart/form-data bodies by default as base64 - #439
Open
akshatt-attri wants to merge 1 commit into
Open
akshatt-attri wants to merge 1 commit into
akshatt-attri wants to merge 1 commit into
Conversation
Add multipart/form-data to the default allowed content types. Multipart request bodies carry binary file parts, so they are captured as unpadded base64 of the raw bytes in http.request.body.base64 instead of decoded text. Covers servlet 3.0/5.0, Netty 4.0/4.1 (server and client request), OkHttp, Apache HttpClient and Undertow. Blocking evaluation is unchanged. OkHttp multipart capture writes into a bounded buffer so large uploads are not held in memory. Co-authored-by: Cursor <cursoragent@cursor.com>
tim-mwangi
reviewed
Nov 23, 2026
|
|
||
| private final int maxCapacity; | ||
| private final Charset charset; | ||
| private volatile boolean multipartFormData; |
Contributor
There was a problem hiding this comment.
This class can be accessed by multiple threads?
tim-mwangi
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.